# init 

kubeadm init --pod-network-cidr=10.244.0.0/16  --apiserver-advertise-address=192.168.56.99

mkdir -p $HOME/.kube
sudo cp -f /etc/kubernetes/admin.conf $HOME/.kube/config 
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl get nodes


kubectl apply -f https://gitee.com/wydcn/k8s/raw/master/kube-flannel.yml
## 
## 

kubeadm join 192.168.56.99:6443 --token xordoe.fk7htsy9o1rqh3zj --discovery-token-ca-cert-hash sha256:17544af51cdc53a6f46491cd1683971aab88f35d02dd7456f0a3c2d711bdf11d